Unit 2: add Prettier, ESLint, Stylelint, EditorConfig + commit lockfile#4
Open
stradichenko wants to merge 1 commit intomainfrom
Open
Unit 2: add Prettier, ESLint, Stylelint, EditorConfig + commit lockfile#4stradichenko wants to merge 1 commit intomainfrom
stradichenko wants to merge 1 commit intomainfrom
Conversation
- Add .editorconfig (UTF-8, LF, 2-space JS/CSS/HTML/TOML; tabs for Go). - Add .nvmrc pinning Node LTS. - Prettier 3 flat config (.prettierrc.json, .prettierignore). - ESLint 9 flat config (eslint.config.mjs): prefer-const, no-var, eqeqeq, no-unused-vars (warn), no-console (warn except .error), browser+node env. - Stylelint extending stylelint-config-standard (.stylelintrc.json, .stylelintignore). - PostCSS config: autoprefixer + postcss-preset-env stage 2. - package.json: drop broken seo-audit / validate-seo / build:advanced refs; add lint, lint:fix, format, format:check scripts. - Remove package-lock.json from .gitignore so installs are deterministic. - Whole-repo formatting is intentionally NOT applied here — later units format their own changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.editorconfig,.nvmrc, Prettier 3 flat config (.prettierrc.json,.prettierignore), ESLint 9 flat config (eslint.config.mjs) withprefer-const/no-var/eqeqeq/no-console(warn except.error), Stylelint extendingstylelint-config-standard, and a PostCSS config withautoprefixer+postcss-preset-envstage 2.package.json: drop brokenseo-audit/validate-seo/build:advancedreferences; addlint,lint:fix,format,format:checkscripts.package-lock.jsonfrom.gitignoreso installs are deterministic. Whole-repo formatting is intentionally not applied here — later units format their own changes.Test plan
npm run lintexits 0 (warnings allowed; errors fail).npm run format:checkpasses on configs and any new files.npm installproduces apackage-lock.jsonthat matches the committed one.Part of the PKB-theme modernization batch (15 units).